home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / send_action < prev    next >
Encoding:
Text File  |  2001-03-21  |  616 b   |  25 lines

  1. Synopsis:
  2.    on [<modes>]send_action [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client sends a CTCP ACTION to a
  6.    channel or to another person.
  7.  
  8. Parameters:
  9.    $0    target of the ACTION (nickname or channel)
  10.    $1-   text of message sent
  11.  
  12. Examples:
  13.    To display separate messages for public and private actions:
  14.       on ^send_action "*" {
  15.          if ( rmatch($0 #* &* +*) ) {
  16.             echo * $0: $N $1-
  17.          } {
  18.             echo *> $0: $N $1-
  19.          }
  20.       }
  21.  
  22. See Also:
  23.    ctcp(1) action; describe(1); me(1); on(5) action
  24.  
  25.